﻿namespace SimpleTerminal.TerminalControl
{
    public class SelectRange
    {
        private int startX = -1;
        private int startY = -1;
        private int endX = -1;
        private int endY = -1;
        private bool enable = false;



        public int updateStartY = -1;
        public int updateEndY = -1;

        public bool Enable
        {
            set
            {
                this.enable = value;
            }
            get
            {
                return this.enable;
            }
        }

        public int StartX
        {
            get => startX;
            set
            {
                startX = value;
            }
        }
        public int EndX
        {
            get => endX;
            set
            {
                endX = value;
            }
        }

        public int StartY
        {
            get => startY;
            set
            {
                startY = value;
            }
        }


        public int EndY
        {
            get => endY;
            set
            {
                endY = value;
            }
        }

        public void Reset()
        {
            this.startX = -1;
            this.StartY = -1;
            this.EndX = -1;
            this.EndY = -1;
            this.updateStartY = -1;
            this.updateEndY = -1;
            this.enable = false;
        }

        public override string ToString()
        {
            return "[" +
                "startX = " + startX + "," +
                "startY = " + StartY + "," +
                "endX = " + EndX + "," +
                "endY = " + EndY +
                "]";
        }
    }
}
